package com.voltmao.energy.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.voltmao.energy.Dao.VoltModule;
import com.voltmao.energy.Mapper.VoltModuleMapper;
import com.voltmao.energy.Service.VoltModuleService;

public class VoltModuleServiceImpl implements VoltModuleService {
	@Autowired
	private VoltModuleMapper mapper;
	@Override
	public VoltModule getModuleByPk(long pk) {
		return mapper.selectByPrimaryKey(pk);
	}

	@Override
	public List<VoltModule> getAllModule() {
		return null;
	}

	@Override
	public void addModule(VoltModule module) {
		mapper.insertSelective(module);//不是insert
	}

	@Override
	public void updateModule(VoltModule module) {
		mapper.updateByPrimaryKey(module);
	}

}
